POV-Ray : Newsgroups : povray.binaries.images : A Maze 60kb : A Maze 60kb Server Time
3 Oct 2024 08:18:19 EDT (-0400)
  A Maze 60kb  
From: Robert Chaffe
Date: 26 Feb 2000 21:38:27
Message: <38b88e23@news.povray.org>
A little while ago there was a discussion of a maze pattern.
Well, the attached is a single CSG object, not a pattern, but it was
my first experiment with macros.
Worked out pretty well, but the parsing time is a tad high.
----------
Resolution 512 x 384
Time For Parse:    0 hours 22 minutes  57.0 seconds (1377 seconds)
Time For Trace:    0 hours  9 minutes  54.0 seconds (594 seconds)
    Total Time:    0 hours 32 minutes  51.0 seconds (1971 seconds)

Official POV-Ray, on a Pentium III, 550 MHz, 128 Meg RAM
----------

Note that there is exactly one true path through the maze.

The macro takes parameters for number of rows and columns, and
a seed value for the random number generation.

Still need to work on:
- Splitting generation of data and creation of object, using a file to
store the data (to reduce parsing time between rendering attempts).
- Options for wall thickness and height, and for path width.
- Expanding my algorithm for a hexagonal shape (no promises!).

Any interest?

rc


Post a reply to this message


Attachments:
Download 'mazetest.jpg' (60 KB)

Preview of image 'mazetest.jpg'
mazetest.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.